package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class MemberTransoutList implements Serializable {
		
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@ManyToOne
	@JoinColumn(name="base_username",nullable=false)
	private MemberBaseInfo baseUsername;
	
	@Column(nullable=false)
	private double transoutAmount;
	
//	transout_username	转账的用户名	varchar	16		NOT NULL
//	transout_account	转账的账号	varchar	16		NOT NULL
//	transout_time	转出时间	time			NOT NULL
//	wallet_remain	转出后电子钱包余额	double			NOT NULL
//	transout_remark	备注	varchar	256		
//	transout_spare	备用字段	varchar	256		

	/**
	 *转出账户
	 */
	@ManyToOne
	@JoinColumn(name="trans_username")
	private MemberBaseInfo transinUsername;

	
	@Column(nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date transoutTime;
	
	@Column(nullable=false)
	private double walletRemain;
	
	private String transoutRemark;
	
	private String transoutSpare;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public MemberBaseInfo getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(MemberBaseInfo baseUsername) {
		this.baseUsername = baseUsername;
	}

	public double getTransoutAmount() {
		return transoutAmount;
	}

	public void setTransoutAmount(double transoutAmount) {
		this.transoutAmount = transoutAmount;
	}
   

	
	public Date getTransoutTime() {
		return transoutTime;
	}

	public void setTransoutTime(Date transoutTime) {
		this.transoutTime = transoutTime;
	}

	public double getWalletRemain() {
		return walletRemain;
	}

	public void setWalletRemain(double walletRemain) {
		this.walletRemain = walletRemain;
	}

	public String getTransoutRemark() {
		return transoutRemark;
	}

	public void setTransoutRemark(String transoutRemark) {
		this.transoutRemark = transoutRemark;
	}

	public String getTransoutSpare() {
		return transoutSpare;
	}

	public void setTransoutSpare(String transoutSpare) {
		this.transoutSpare = transoutSpare;
	}

	public MemberBaseInfo getTransinUsername() {
		return transinUsername;
	}

	public void setTransinUsername(MemberBaseInfo transinUsername) {
		this.transinUsername = transinUsername;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
	
}
